package com.sen.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sen.entity.MenuEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 权利表
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2021-01-08 17:54:40
 */
@Mapper
@Repository
public interface MenuDao extends BaseMapper<MenuEntity> {

    List<MenuEntity> queryMenusByRole(int id);

    List<MenuEntity> selectMenus(@Param("pid") Integer pid, @Param("roleId") Integer roleId);
}
